#!/bin/sh -e

export LDFLAGS="$LDFLAGS -static"

make CC="${CC:-cc}" EFIDIR=/boot/efi efibootmgr src/efibootmgr.8

clinst -Dm755 src/efibootmgr "$1/usr/bin/efibootmgr"
clman -d "$1" src/efibootmgr.8
